#ifndef SQL_FUNDLIST_H
#define SQL_FUNDLIST_H

#include "sql_common.h"
//#include "queueList.h"

typedef struct __sql_fundlistData {
  QString code;
  QString name;
}sql_fundListData;

const QString nullFundCode = "000000";
const QString nullFundName = "NULL";

class SQL_FundList
{
public:
    SQL_FundList();
    ~SQL_FundList();
    int insert_by_code_and_name(QString code, QString name);
    bool delete_by_code(QString code);
    int get_fundList_count();
    sql_fundListData get_fundList_by_index(int index);
    bool checkCode(QString code);

private:
    basic_sql_data *sqlListData;
//    QueueList *sqlListQueue;
    QList<sql_fundListData> sqlList;
    void updateSqlQueue();
};

#endif // SQL_FUNDLIST_H
